x86/setup: Don't skip 2MiB underneath relocated Xen image
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 1 Feb 2020 00:32:58 +0000 (00:32 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Feb 2020 18:01:52 +0000 (18:01 +0000)
commit707db77a380b96025bae8bc4322da0b64819d3b7
tree7a30f16e866e9040b9383835a2c6dd695e69896a
parent8b1002ab037aeacdece7723c07ab35ca16c1e22e
x86/setup: Don't skip 2MiB underneath relocated Xen image

Set 'e' correctly to reflect the location that Xen is actually relocated
to from its default 2MiB location. Not 2MiB below that.

This is only vaguely a bug fix. The "missing" 2MiB would have been used
in the end, and fed to the allocator. It's just that other things don't
get to sit right up *next* to the Xen image, and it isn't very tidy.

For live update, I'd quite like a single contiguous region for the
reserved bootmem and Xen, allowing the 'slack' in the former to be used
when Xen itself grows larger. Let's not allow 2MiB of random heap pages
to get in the way...

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/setup.c